package com.xmotor.dao;

import com.xmotor.model.DO.ScoreTaskRuleDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreTaskRuleDao {

    int deleteByPrimaryKey(String ruleId);

    int insertSelective(ScoreTaskRuleDO record);

    ScoreTaskRuleDO selectByPrimaryKey(String ruleId);

    int updateByPrimaryKeySelective(ScoreTaskRuleDO record);

    Long getRuleIdSeq();

    List<ScoreTaskRuleDO> selectByParams(@Param("ruleId") String ruleId, @Param("platformId") Integer platformId,
                                         @Param("taskType") Integer taskType, @Param("status") Integer status);

    List<ScoreTaskRuleDO> selectByScoreTaskRuleDO(ScoreTaskRuleDO record);
}